package com.ecloud.gardensterminal.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ecloud.gardensterminal.domain.GardensParalleling;

/**
 * @author Squbi
 */
public interface GardensParallelingMapper extends BaseMapper<GardensParalleling> {

    /**
     * 查找最新数据
     *
     * @param deviceId id
     * @return GardensParalleling
     * @author Squbi
     * @date 2021/9/18 15:28
     */
    GardensParalleling selectNewly(int deviceId);

    /**
     * 删除大于1天的数据
     *
     * @author Squbi
     * @date 2021/9/18 15:25
     */
    void delete1days();
}
